package me.queuelearn;

public class Test2 {
    public static void main(String[] args) {
        ArrayQueue1<Integer> aq1 = new ArrayQueue1<>(10);

        aq1.offer(1);
        aq1.offer(2);
        aq1.offer(3);
        aq1.offer(4);
        aq1.offer(5);

        System.out.println(aq1.isEmpty());
        System.out.println(aq1.isFull());
        Integer peek = aq1.peek();
        System.out.println(peek);
        System.out.println("-----------------");
        System.out.println(aq1.poll());
        System.out.println("-----------------");
        for (Integer value : aq1) {
            System.out.print(value + " ");
        }
    }
}
